if(!isset($_SERVER[PHP_AUTH_USER])){ Header("WWW-Authenticate: Basic realm=\"ROMS Admin\""); Header("HTTP/1.0 401 Unauthorized"); echo "Why did you hit the cancel button\n"; exit; } else{ $user_passwords = array ( // user1 is the login name and password1 // is that users password. Add as many // lines as you like. "llagle" => "globec", "mgazzale" => "globec", "arango" => "bluesun2" ); if (($_SERVER[PHP_AUTH_USER] == "") || ($_SERVER[PHP_AUTH_PW] == "")){ Header("HTTP/1.0 401 Unauthorized"); echo "Sorry, couldn't find your password!"; exit; } else if (strcmp($user_passwords[$_SERVER[PHP_AUTH_USER]],$_SERVER[PHP_AUTH_PW]) == 0){ // This is the page that should be password protected. include("adminfunctions.php"); include("proc_paper_approve.php"); ?>
| Title: | echo "'."\n"; if(isset($_GET[act]) && $_GET[act]=="del" && isset($_GET[ind])) echo ' | =$row['title']?> |
| Reference: | =$row['reference']?> | |
| Status: | =$row['status']?> | |
| Date(YYYY): | if(isset($row_purg['date'])) $tmp=$row_purg['date']; else $tmp=""; ?> | =$row['date']?> |
| Authors: | =$row['authors']?> | |
| Type: | =$row['type']?> | |
| Journal: | $query="SELECT id,title FROM journals ORDER BY title"; $result=mysql_query($query); $jour[0]="N/A"; $i=1; while($jrow=mysql_fetch_assoc($result)){ $jind[$i]=$jrow[id]; $jour[$i]=$jrow[title]; $i++; } $num=count($jour); echo ' | if(!empty($row['journal_id'])){ $query="SELECT journals.title FROM papers,journals WHERE id=" . $row['journal_id']; $result=mysql_query($query); $tmp=mysql_fetch_assoc($result); echo $tmp['title']; } else echo " "; ?> |
| Pub/Issue Title: | =$row['pub_title']?> | |
| Volume: | =$row['volume']?> | |
| Pages: | =$row['pages']?> | |
| Link: | =$row['link']?> |